# !/usr/bin/python
# -*- coding: UTF-8 -*-

import os
import sys
import time



counter = 5000
while counter is not 0:
    #cmd = 'sudo python blue_conn.py mac 00:0B:57:1D:38:27 uuid 1101 chid 8888 feedp 1706%02d%02d%02d05 %d' % (14,(counter % 20) + 1,(counter % 60) + 1,counter * 10)
    cmd = 'sudo python blue_conn.py mac 00:0B:57:1D:38:27 uuid 1101 chid 8888 feedp 170611062205 1000'
    os.system(cmd)
    print "cmd: ",cmd
    print 'counter:',(5000-counter+1)
    time.sleep(15)
    counter = counter - 1 



